package com.myCommunity.dao;

import java.util.List;

import com.myCommunity.entity.Topic;

public interface TopicDao {
	List<Topic> getTopicList(int pageNum,int pageSize);
	List<Topic> getTopicListByForumId(int pageNum,int pageSize,int forumId,int isBest);
	int getTopicSize(int isBest,int forumId);
	List<Topic> getTopicListByTitle(int pageNum,int pageSize,String title);
	Topic getTopicById(int id);
	void add(Topic topic);

}
